package tester;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.Test;





import mock.MockStudentLineItem;
import po.StudentPO;
import businesslogicservice.StudentLineItem;
import businesslogicservice.StudentList;

public class GetStudentListTest {

	//@SuppressWarnings("deprecation")
	@Test
	public void testGetStudentList() {
		MockStudentLineItem mockStudentLineItem = new MockStudentLineItem(new StudentPO(121250232,"zhuyanhui","123456",4.1,123));
		ArrayList<StudentLineItem> studentList = new ArrayList<StudentLineItem>();
		studentList.add(mockStudentLineItem);
		
		StudentList userList = new StudentList(studentList);
		StudentLineItem item = userList.getStudentList().get(0);
		
		
		
		
		assertEquals(121250232,item.getStudentPO().getId());
		assertEquals("zhuyanhui",item.getStudentPO().getName());
		assertEquals("123456",item.getStudentPO().getPassword());
		//assertEquals(4.1,item.getStudentPO().getGPA());
		assertEquals(123,item.getStudentPO().getDepartmentId());
		
		
		
		
	}

}
